package com.hxf.dto;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.PolymorphismType;

/**
 * 餐馆信息类
 * @author tengyicheng
 *
 */ 
@Entity
@Table(name = "rk_restaurant")
@org.hibernate.annotations.Entity(selectBeforeUpdate = true, dynamicInsert = true, dynamicUpdate = true, polymorphism = PolymorphismType.EXPLICIT)
public class RestaurantDto extends BaseDto {
	private Integer id;
	private Integer userId;//用户ID
	private String name;
	private String province;
	private String city;
	private String district;
	private String street;
	private String other;
	private String address;
	private String mealStyle;
	private String beginTime;
	private String endTime;
	private String moilbe;
	private Boolean isPreordain;	//是否支持预定
	private String linkman;
	private String images1;
	private String images2;
	private String images3;
	private String images4;
	private Integer status; 
	private Boolean isRecommend;
	private String explanation;
	private Integer feedback;//评分
	private Integer peopleNum;//消费人次
	
	/**
	 * 审核中
	 */
	public static final int RESTAURANT_STATUS_0 = 0; 
	
	/**
	 * 审核通过
	 */
	public static final int RESTAURANT_STATUS_1 = 1; 
	
	/**
	 * 审核不通过
	 */
	public static final int RESTAURANT_STATUS_2 = 2;
	
	/**
	 * 作废
	 */
	public static final int RESTAURANT_STATUS_3 = 3;
	
	
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	@Column(name="user_id")
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	} 
	
	@Column(name = "name")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	@Column(name = "province")
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	
	@Column(name = "city")
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	
	@Column(name = "district")
	public String getDistrict() {
		return district;
	}
	public void setDistrict(String district) {
		this.district = district;
	}
	
	@Column(name = "street")
	public String getStreet() {
		return street;
	}
	public void setStreet(String street) {
		this.street = street;
	}
	
	@Column(name = "other")
	public String getOther() {
		return other;
	}
	public void setOther(String other) {
		this.other = other;
	}
	
	@Column(name = "address")
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	
	@Column(name="meal_style")
	public String getMealStyle() {
		return mealStyle;
	}
	public void setMealStyle(String mealStyle) {
		this.mealStyle = mealStyle;
	}
	
	@Column(name="begin_time")
	public String getBeginTime() {
		return beginTime;
	}
	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}
	
	@Column(name="end_time")
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	
	@Column(name="moilbe")
	public String getMoilbe() {
		return moilbe;
	}
	public void setMoilbe(String moilbe) {
		this.moilbe = moilbe;
	} 
	
	@Column(name="linkman")
	public String getLinkman() {
		return linkman;
	}
	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}
	
	@Column(name="images_1")
	public String getImages1() {
		return images1;
	}
	public void setImages1(String images1) {
		this.images1 = images1;
	}
	
	@Column(name="images_2")
	public String getImages2() {
		return images2;
	}
	public void setImages2(String images2) {
		this.images2 = images2;
	}
	
	@Column(name="images_3")
	public String getImages3() {
		return images3;
	}
	public void setImages3(String images3) {
		this.images3 = images3;
	}
	
	@Column(name="images_4")
	public String getImages4() {
		return images4;
	}
	public void setImages4(String images4) {
		this.images4 = images4;
	}
	@Column(name="status")
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	
	@Column(name="is_preordain")
	public Boolean getIsPreordain() {
		return isPreordain;
	}
	public void setIsPreordain(Boolean isPreordain) {
		this.isPreordain = isPreordain;
	}
	
	@Column(name="is_recommend")
	public Boolean getIsRecommend() {
		return isRecommend;
	}
	public void setIsRecommend(Boolean isRecommend) {
		this.isRecommend = isRecommend;
	}
	
	@Column(name="explanation")
	public String getExplanation() {
		return explanation;
	}
	public void setExplanation(String explanation) {
		this.explanation = explanation;
	}
	
	@Column(name="feedback")
	public Integer getFeedback() {
		return feedback;
	}
	public void setFeedback(Integer feedback) {
		this.feedback = feedback;
	}
	
	@Column(name="peopleNum")
	public Integer getPeopleNum() {
		return peopleNum;
	}
	public void setPeopleNum(Integer peopleNum) {
		this.peopleNum = peopleNum;
	}
}
